public class MethodDemo {
    public static void main(String[] args) {
        System.out.println(max2(99,5));
        System.out.println(max3(11,55,9));
    }
    public static int max2(int a,int b){
        if(a>b){
            return a;
        }else return b;
    }
    public static int max3(int a,int b,int c){
        return max2(max2(a,b),c);
    }

}
